package com.Long.controller;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class TestXxlJobHandler {
    private static final Logger log = LoggerFactory.getLogger(TestXxlJobHandler.class);


    @XxlJob("testjobhandler")
    public ReturnT<String> TestJobHandler(){
        System.out.println("成功执行xxlJOb定时任务....机器2.....");
        return new ReturnT<>("nb!!!!");
    }
}